class Property < ActiveRecord::Base
  has_many :member_properties
  has_many :members, :through => :member_properties
  
  validates_presence_of :name
  validates_format_of :name, :with => /^[a-z0-9_]+$/, :on => :create, 
      :message => "can only have lowercase letters, numbers and underscores"
end
